home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / pov / gen / swarm / swarm.doc < prev    next >
Encoding:
Text File  |  1992-11-23  |  3.3 KB  |  107 lines

  1. SWARM
  2. (c) 1992, Splat! Graphics
  3.  
  4. This polyray data file generator produces a 165K Polyray 1.5 data file that
  5. creates a swarm of 60 blobs defined by 300 metaballs that swirls around.
  6. The motion is based on MERGE2 written by Eric Deren that was extended to 
  7. 3D.  Its all sines and cosines but the motion is hypnotic.  The motion will
  8. repeat about every 7000 frames.
  9.  
  10. Use Qbasic in DOS 5.0 to run it.  
  11.  
  12. In polyray, you have to turn warnings off, since I overwrite several hundred
  13. variables in order to save space.  I recommend the following polyray.ini file:
  14.  
  15. abort_test       on
  16. alias_threshold  0.05
  17. antialias        none
  18. display          vga
  19. max_samples      8
  20. pixel_size       24
  21. pixel_encoding   rle
  22. renderer         ray_trace
  23. shade_flags      default
  24. shadow_tolerance 0.05
  25. status           totals
  26. warnings         off
  27.  
  28. I got 400 frames overnight at 160x120 on a 486/33.
  29.  
  30. If you're going to create a long animation, Pay Attention!
  31.  
  32. DOS does not handle directories with more than 256 files very well, since the
  33. multiple linked directories created slows everyone down.  And there's no DOS
  34. tool that I know of that removes deleted entries so your disk will stay slow
  35. even if you delete the files until you run a disk packer like nortons 
  36. SPEEDISK. I'd recommend you render 250 targas at a time and write them
  37. to their own subdirectories.
  38.  
  39. Painfully detailed steps...
  40.  
  41. Step 1).  Create a directory called \ply\swarm and copy swarm.pi to it.
  42. Step 2).  Decide how big of a flic you want to create.  At 160x120, each
  43.           250 frame block takes about 5 meg.  Lets say you have 30 meg
  44.           free, reserve 25 for the targas and 5 for the flic.  Lets try 
  45.           rendering a 1250 frame flic.
  46.  
  47. Step 3).  Off of \ply\swarm, create the subdirectories 0,250,500,750 and 1000.
  48.  
  49. Step 4).  In the header of SWARM.PI, modify the start_frame, end_frame and 
  50.           outfile name to contain the right values.  Render 250 frames, then 
  51.           change the header to the next 250 and start it over again.  For the
  52.           first 250 frames, the header would read:
  53.  
  54. #
  55. # SWARM.PI
  56. #
  57. # Polyray input file - Jeff Bowermaster
  58. # 8/31/92
  59. # Modified 11/20/92
  60.  
  61. # Define the range of the animation
  62.  
  63. start_frame     0    
  64. end_frame     249
  65. total_frames  250
  66. outfile "0\swrm"
  67.  
  68. When you're finished,
  69.  
  70.    \ply\swarm\0    will contain  swrm000.tga-swrm249.tga
  71.    \ply\swarm\250  will contain  swrm250.tga-swrm499.tga
  72.    \ply\swarm\500  will contain  swrm500.tga-swrm749.tga
  73.    \ply\swarm\750  will contain  swrm750.tga-swrm999.tga
  74.    \ply\swarm\1000 will contain swrm1000.tga-swrm1249.tga
  75.  
  76.  
  77. Step 5).  Use DTA in list mode to assemble the final flic. Create a file 
  78.           "list" contained the following lines:
  79.  
  80. 0\*.tga
  81. 250\*.tga
  82. 500\*.tga
  83. 750\*.tga
  84. 1000\*.tga
  85.  
  86. Then call dta using
  87.  
  88.     DTA @list /ff /oswarm /s3 /c10
  89.  
  90. and you're all set.
  91.  
  92. Fringe benefit, by keeping 3 numeral and 4 numeral targas isolated, you
  93. prevent frames 1000-1009 from butting in between frames 100 and 101.
  94.  
  95. A preview of the motion can be seen running merge3.  Many thanks to Eric
  96. Deren for allowing me to use his algorithm for this project.
  97.  
  98. Have fun, feel free to build on this code and PLEASE post whatever you 
  99. come up with, I'd (we'd all) love to see it.
  100.  
  101. Jeff Bowermaster
  102.   [72040,2117]
  103.  
  104. bowerman@garfield.ncat.edu
  105.  
  106. TGA 510-524-2780
  107.